package com.opennews.openplatform.dto.journey;

import com.opennews.openplatform.myspringbootcore.dto.IdentityDto;
import com.opennews.openplatform.myspringbootcore.validation.DateRangeValidatable;
import com.opennews.openplatform.myspringbootcore.validation.ValidDateRange;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Setter
@Getter
@ValidDateRange
public abstract class BaseJourneyDto implements DateRangeValidatable {
    @NotNull(message = "region can't be null")
    private IdentityDto region;

    @NotNull(message = "startDate can't be null")
    private LocalDateTime startDate;

    @NotNull(message = "endDate can't be null")
    private LocalDateTime endDate;
}
